<?php defined('ByShopWWI') or exit('Access Invalid!');?>
<style>
    body{background: #f5f5f5 !important;}
</style>
<div class="warp-all article-layout-a" id="warp-all">
    <div class="mainbox postion-a">

        <div class="sitenav-bar">
            <div class="pagetitle">有问有答 </div>

            <div class="sitenav"><?php echo $lang['current_location'];?><?php echo $lang['nc_colon'];?> <a
                        href="<?php echo SHOP_SITE_URL;?>">金贵银器</a> > <a href="<?php
                echo CMS_SITE_URL.DS.'index.php?act=ques_answer&op=index';?>">有问有答</a><?php echo empty($_GET['class_id'])?'':' > '.$output['article_class_list'][$_GET['class_id']]['class_name'];?></div>

            <ul class="sub_class">
                <li><a class="<?php echo $output['consult']; ?>" href="<?php echo urlCMS('ques_answer','index',array
                    ('ques_answer'=>'consult'))?>#warp-all">帮助中心</a></li>
                <li><a class="<?php echo $output['pay']; ?>" href="<?php echo urlCMS('ques_answer','index',array
                    ('ques_answer'=>'pay'))
                    ?>#warp-all">支付方式</a></li>
                <li><a class="<?php echo $output['sale']; ?>" href="<?php echo urlCMS('ques_answer','index',array('ques_answer'=>'sale'))?>#warp-all">售后服务</a></li>
				<li><a class="<?php echo $output['account']; ?>" href="<?php echo urlCMS('ques_answer','index',array('ques_answer'=>'account'))?>#warp-all">客服中心</a></li>
				<li><a class="<?php echo $output['profit']; ?>" href="<?php echo urlCMS('ques_answer','index',array('ques_answer'=>'profit'))?>#warp-all">公司介绍</a></li>
            </ul>
        </div>
		
		<div class="main-list">
			<div class="left-list">
        <?php if(!empty($output['article_li']) && is_array($output['article_li'])) {?>
            <ul class="article-list2">
                <?php foreach($output['article_li'] as $value) {?>
                    <?php
                           $article_url = getCMS_question_Url($value['article_id']);?>
                    <li>
                        <h3 class="article-title">
                            <a href="<?php echo $article_url;?>" target="_blank">
                                <?php
                                  if (mb_strlen($value['article_title'])>70){
                                      echo str_cut($value['article_title'],'50').'...' ;
                                  }else{
                                      echo $value['article_title'];
                                  }

                                  ?>
                            </a>
                        </h3>

                        <span class="date"><?php echo date('Y-m-d',$value['article_publish_time']);?></span>

                        <div class="article-preface">
                            <?php
                                    if(mb_strlen($value['article_abstract'])>100)
                                           echo mb_substr($value['article_abstract'],0,48,'utf-8').'...';
                                    else{
                                           echo $value['article_abstract'];
                                    }
                            ?>
                        </div>

                    </li>
                <?php } ?>
            </ul>
            <div class="pagination"> <?php echo $output['show_page'];?> </div>
        <?php } else { ?>
            <div class="no-content-b"><i class="article"></i><?php echo $lang['no_record'];?></div>
        <?php } ?>
		
			</div>
		</div>
		
		
		
		
		
		
		<div class="sidebar">
			<div class="block-style-one">
				<div class="title">
					<h3>大家都在问</h3>
					<!--
					内容页的侧边栏同样使用该标题，内容页（媒体报道内容页）其他部分不改动
					-->
				</div>
				<div class="content">
					<ul class="article-recommand-list">
                        <?php  foreach ($output['article_bar'] as $v) {  ?>
						<li>
                            <a href="<?php echo urlCMS('ques_answer','ques_answer_detail').'&article_id='.$v['article_id'];
                            ?>">
                                <?php echo $v['article_title'] ?></a>

                        </li>
                        <?php } ?>

					</ul>
			</div>
			</div>
		</div>

		
		
		
		
		
    </div>
</div>
